from django.db import models

# Create your models here.

class Grades(models.Model):
    grade_name = models.CharField(max_length=120,unique=True,verbose_name='班级名称')
    grade_number = models.CharField(max_length=10,unique=True,verbose_name='班级编号')
    
    class Meta:
        db_table = 'grade'
        verbose_name = '班级管理'
        verbose_name_plural = '班级管理'
    
    def __str__(self):
        return self.grade_name
    
